﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.Application;

namespace EcoSystem;

[DependsOn(
    typeof(EcoSystemDomainModule),
    typeof(EcoSystemApplicationContractsModule),
    typeof(AbpDddApplicationModule),
    typeof(AbpAutoMapperModule)
    )]
public class EcoSystemApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        var configuration = context.Services.GetConfiguration();
        Configure<ResourceUploadOptions>(configuration.GetSection("ResourceUploadOptions"));
        context.Services.AddAutoMapperObjectMapper<EcoSystemApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<EcoSystemApplicationModule>(validate: true);
        });

      
    }
}
